/**
 * User: alesj
 * Date: 22.1.2006
 * Time: 20:54:35
 * 
 * (C) Genera Lynx d.o.o.
 */

package com.alesj.blueberry.spring.games;

import org.springframework.beans.factory.FactoryBean;

/**
 * @author <a href="mailto:ales.justin@genera-lynx.com">Ales Justin</a>
 */
public class StrategyFactory implements FactoryBean {

    private Strategy[] strategies;

    public Strategy[] getStrategies() {
        return strategies;
    }

    public void setStrategies(Strategy[] strategies) {
        this.strategies = strategies;
    }

    public Object getObject() throws Exception {
        return strategies;
    }

    public Class getObjectType() {
        return strategies.getClass();
    }

    public boolean isSingleton() {
        return true;
    }

}
